package com.my.chapter5;

public class practice9 {
    public static void main(String[] args) {
        Type5 t1 = new Type5();
        Type5 t2 = new Type5("看书");
    }
}

class Type5{
    String str;
    public Type5(){
        this("编程");
        System.out.println("default");
    }
    public Type5(String str){
        this.str=str;
        System.out.println("Type5(String str)：str= "+str);
    }
}
